package com.itheima.userconsumer.service;

import com.itheima.b2b.commonmodule.model.User;
import com.itheima.userconsumer.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;
    @Override
    public User login(String uname) {
        return this.userDao.login(uname);
    }

    @Override
    public int register(String upassword, String uname, String usex) {
        return this.userDao.register(upassword,uname,usex);
    }
}
